﻿using System.Collections.Generic;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data.Interfaces
{
    public interface ISupplierDao
    {
        int GetSupplierCountByFilter(string name, int supplierGroupId);

        List<Supplier> GetSuppliersByFilter(string name, int supplierGroupId, int jtStartIndex, int jtPageSize,
                                            string jtSorting);

        Supplier AddSupplier(Supplier supplier);
        void UpdateSupplier(Supplier supplier);
        void DeleteSupplier(int supplierId);
        int GetMaxId();
        int GetCurrentIdentity();
        Supplier GetById(int id);
        List<Supplier> GetAllSuppliers();
    }
}
